<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
include("../inc/global.inc");
$rs=mysql_query("select * from product where p_cl=0 and m_type=6 order by id desc");//p_cl=0
while($row=mysql_fetch_array($rs)){
$b=$row[p_info];
$p_title=$row[p_title];
$p_title=preg_replace("/(\d{3,4}\-\d{6,8})|(\d{9,11})/","",$p_title);
$p_title=preg_replace("/(http:\/\/)?((\w+)\.)?(\w+)\.([a-zA-Z]+)(\.[a-zA-Z]+)?(\/([a-zA-Z\.\/]+))?/","",$p_title);


$b=preg_replace("/(\d{3,4}\-\d{6,8})|(\d{9,11})/","",$b);
$b=preg_replace("/(http:\/\/)?((\w+)\.)?(\w+)\.([a-zA-Z]+)(\.[a-zA-Z]+)?(\/([a-zA-Z\.\/]+))?/","",$b);

mysql_query("update product set p_title='$p_title',p_info='$b',p_sh=1,p_cl=1 where id='".$row['id']."'");

}
?>
<?php 
echo "<script>location='right.php';</script>";?>
处理完成